import request from '@/utils/request'

// 查询告警策略列表
export function listStrategyParams(query) {
  return request({
    url: '/params/strategyParams/list',
    method: 'get',
    params: query
  })
}

// 查询告警策略详细
export function getStrategyParams(ID) {
  return request({
    url: '/params/strategyParams/' + ID,
    method: 'get'
  })
}

// 新增告警策略
export function addStrategyParams(data) {
  return request({
    url: '/params/strategyParams',
    method: 'post',
    data: data
  })
}

// 修改告警策略
export function updateStrategyParams(data) {
  return request({
    url: '/params/strategyParams',
    method: 'put',
    data: data
  })
}

// 删除告警策略
export function delStrategyParams(ID) {
  return request({
    url: '/params/strategyParams/' + ID,
    method: 'delete'
  })
}
